﻿function CheckLoginDownload() {
    /*
    $.ajax({
        url: "/handler/checklogindownload.ashx",        
        dataType: 'json',
        success: function (data) {
            var userMoney = data.Money;
            if (eval(price) > eval(userMoney)) {
                ComfirmTopup();
            }
            else {
                jQuery().colorbox({ width: "650px", height: "630px", iframe: true, href: "/usercontrols/download/download.aspx?appid=" + appid + "&urltype=" + urltype });

            }
        }
    });
    */
}

function CloseIframeColorBox() {
    parent.jQuery().colorbox.close();
}

function LoginDownloadSuccess(key) {
    CloseIframeColorBox();
    window.location = "/plist.aspx?ak=" + key;
}